package com.ruoyi.bookstore.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 借阅证对象 borrow_card
 * 
 * @author ruoyi
 * @date 2022-07-20
 */
public class BorrowCard extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 借阅者姓名 */
    @Excel(name = "借阅者姓名")
    private String reader;

    /** 规则编号 */
    @Excel(name = "规则编号")
    private Long ruleId;

    /** 状态（0丢失，1正常） */
    @Excel(name = "状态", readConverterExp = "0=丢失，1正常")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setReader(String reader) 
    {
        this.reader = reader;
    }

    public String getReader() 
    {
        return reader;
    }
    public void setRuleId(Long ruleId) 
    {
        this.ruleId = ruleId;
    }

    public Long getRuleId() 
    {
        return ruleId;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("password", getPassword())
            .append("reader", getReader())
            .append("ruleId", getRuleId())
            .append("status", getStatus())
            .toString();
    }
}
